﻿
@{
    ViewBag.Title = "用户工程-前期测算 对比表";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
    double tempNum = 0;

    //这里需要加减的值
    //红线内单方造价
    string HXNDFZJ1 = "";
    string HXNDFZJ2 = "";
    string HXNDFZJ3 = "";
    string HXNDFZJ4 = "";
    string HXNDFZJ5 = "";

    if (ViewBag.MapCS1["HXNBJJE"].ToString() == "-")
    {
        HXNDFZJ1 = "-";
    }
    else
    {
        string je = ViewBag.MapCS1["HXNBJJE"].ToString();
        string jzmj = ViewBag.MapCS1["JZMJ"].ToString();
        if (je == "" || jzmj == "0" || jzmj == "")
        {
            HXNDFZJ1 = "-";
        }
        else
        {
            HXNDFZJ1 = (double.Parse(je) / double.Parse(jzmj)).ToString();
        }
    }

    if (ViewBag.MapCS2["HXNBJJE"].ToString() == "-")
    {
        HXNDFZJ2 = "-";
    }
    else
    {
        string je = ViewBag.MapCS2["HXNBJJE"].ToString();
        string jzmj = ViewBag.MapCS2["JZMJ"].ToString();
        if (je == "" || jzmj == "0" || jzmj == "")
        {
            HXNDFZJ2 = "-";
        }
        else
        {
            HXNDFZJ2 = (double.Parse(je) / double.Parse(jzmj)).ToString();
        }
    }




    //红线内容量单价
    string HXNRLDJ1 = "";
    string HXNRLDJ2 = "";
    string HXNRLDJ3 = "";
    string HXNRLDJ4 = "";
    string HXNRLDJ5 = "";





}

<style>
    .layui-table-cell {
        height: 20px;
        line-height: 20px;
    }
</style>
<table lay-filter="demo">
    <thead>
        <tr>
            <th lay-data="{field:'A1',title:'A1', width:200,align:'center'}"></th>
            <th lay-data="{field:'A2',title:'A2', width:150,align:'center'}"></th>
            <th lay-data="{field:'A3',title:'A3', width:150,align:'center'}"></th>
            <th lay-data="{field:'A4',title:'A4', width:150,align:'center'}"></th>
            <th lay-data="{field:'A5',title:'A5', width:150,align:'center'}"></th>
            <th lay-data="{field:'A6',title:'A6', width:150,align:'center'}"></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>测算对比表</td>
        </tr>
        <tr>
            <td>项目名称</td>
            <td>@ViewBag.MapCS1["XMMC"]</td>
            <td>@ViewBag.MapCS2["XMMC"]</td>
            <td>@ViewBag.MapCS3["XMMC"]</td>
            <td>@ViewBag.MapCS4["XMMC"]</td>
            <td>@ViewBag.MapCS5["XMMC"]</td>
        </tr>
        <tr>
            <td>楼盘业态</td>
            <td>@ViewBag.MapCS1["LPYT"]</td>
            <td>@ViewBag.MapCS2["LPYT"]</td>
            <td>@ViewBag.MapCS3["LPYT"]</td>
            <td>@ViewBag.MapCS4["LPYT"]</td>
            <td>@ViewBag.MapCS5["LPYT"]</td>
        </tr>
        <tr>
            <td>用电性质</td>
            <td>@ViewBag.MapCS1["YDXZ"]</td>
            <td>@ViewBag.MapCS2["YDXZ"]</td>
            <td>@ViewBag.MapCS3["YDXZ"]</td>
            <td>@ViewBag.MapCS4["YDXZ"]</td>
            <td>@ViewBag.MapCS5["YDXZ"]</td>
        </tr>
        <tr>
            <td>建筑面积</td>
            <td>@ViewBag.MapCS1["JZMJ"]</td>
            <td>@ViewBag.MapCS2["JZMJ"]</td>
            <td>@ViewBag.MapCS3["JZMJ"]</td>
            <td>@ViewBag.MapCS4["JZMJ"]</td>
            <td>@ViewBag.MapCS5["JZMJ"]</td>
        </tr>
        <tr>
            <td>总容量</td>
            <td>@ViewBag.MapCS1["RL"]</td>
            <td>@ViewBag.MapCS2["RL"]</td>
            <td>@ViewBag.MapCS3["RL"]</td>
            <td>@ViewBag.MapCS4["RL"]</td>
            <td>@ViewBag.MapCS5["RL"]</td>
        </tr>
        <tr>
            <td>公配容量</td>
            <td>@ViewBag.MapCS1["GPRL"]</td>
            <td>@ViewBag.MapCS2["GPRL"]</td>
            <td>@ViewBag.MapCS3["GPRL"]</td>
            <td>@ViewBag.MapCS4["GPRL"]</td>
            <td>@ViewBag.MapCS5["GPRL"]</td>
        </tr>
        <tr>
            <td>专配容量</td>
            <td>@ViewBag.MapCS1["ZPRL"]</td>
            <td>@ViewBag.MapCS2["ZPRL"]</td>
            <td>@ViewBag.MapCS3["ZPRL"]</td>
            <td>@ViewBag.MapCS4["ZPRL"]</td>
            <td>@ViewBag.MapCS5["ZPRL"]</td>
        </tr>
        <tr>
            <td>红线内报价</td>
            <td>@ViewBag.MapCS1["HXNBJJE"]</td>
            <td>@ViewBag.MapCS2["HXNBJJE"]</td>
            <td>@ViewBag.MapCS3["HXNBJJE"]</td>
            <td>@ViewBag.MapCS4["HXNBJJE"]</td>
            <td>@ViewBag.MapCS5["HXNBJJE"]</td>
        </tr>
        <tr>
            <td>红线内单方造价</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>红线内容量单价</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>容量单价</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>设备成本(公用)</td>
            <td>@ViewBag.MapCS1["EquipFee_GP"]</td>
            <td>@ViewBag.MapCS2["EquipFee_GP"]</td>
            <td>@ViewBag.MapCS3["EquipFee_GP"]</td>
            <td>@ViewBag.MapCS4["EquipFee_GP"]</td>
            <td>@ViewBag.MapCS5["EquipFee_GP"]</td>
        </tr>
        <tr>
            <td>材料成本(公用)</td>
            <td>@ViewBag.MapCS1["MeterialFee_GP"]</td>
            <td>@ViewBag.MapCS2["MeterialFee_GP"]</td>
            <td>@ViewBag.MapCS3["MeterialFee_GP"]</td>
            <td>@ViewBag.MapCS4["MeterialFee_GP"]</td>
            <td>@ViewBag.MapCS5["MeterialFee_GP"]</td>
        </tr>
        <tr>
            <td>设备成本(专用)</td>
            <td>@ViewBag.MapCS1["EquipFee_ZP"]</td>
            <td>@ViewBag.MapCS2["EquipFee_ZP"]</td>
            <td>@ViewBag.MapCS3["EquipFee_ZP"]</td>
            <td>@ViewBag.MapCS4["EquipFee_ZP"]</td>
            <td>@ViewBag.MapCS5["EquipFee_ZP"]</td>
        </tr>

        <tr>
            <td>材料成本(专用)</td>
            <td>@ViewBag.MapCS1["MeterialFee_ZP"]</td>
            <td>@ViewBag.MapCS2["MeterialFee_ZP"]</td>
            <td>@ViewBag.MapCS3["MeterialFee_ZP"]</td>
            <td>@ViewBag.MapCS4["MeterialFee_ZP"]</td>
            <td>@ViewBag.MapCS5["MeterialFee_ZP"]</td>
        </tr>
        <tr>
            <td>安装成本(公用)</td>
            <td>@ViewBag.MapCS1["InstallFee_GP"]</td>
            <td>@ViewBag.MapCS2["InstallFee_GP"]</td>
            <td>@ViewBag.MapCS3["InstallFee_GP"]</td>
            <td>@ViewBag.MapCS4["InstallFee_GP"]</td>
            <td>@ViewBag.MapCS5["InstallFee_GP"]</td>
        </tr>

        <tr>
            <td>安装成本(专用)</td>
            <td>@ViewBag.MapCS1["InstallFee_ZP"]</td>
            <td>@ViewBag.MapCS2["InstallFee_ZP"]</td>
            <td>@ViewBag.MapCS3["InstallFee_ZP"]</td>
            <td>@ViewBag.MapCS4["InstallFee_ZP"]</td>
            <td>@ViewBag.MapCS5["InstallFee_ZP"]</td>
        </tr>
        <tr>
            <td>红线内土建</td>
            <td>@ViewBag.MapCS1["CivilPrice_HXN"]</td>
            <td>@ViewBag.MapCS2["CivilPrice_HXN"]</td>
            <td>@ViewBag.MapCS3["CivilPrice_HXN"]</td>
            <td>@ViewBag.MapCS4["CivilPrice_HXN"]</td>
            <td>@ViewBag.MapCS5["CivilPrice_HXN"]</td>
        </tr>
        <tr>
            <td>实验调试费</td>
            <td>@ViewBag.MapCS1["TestFee"]</td>
            <td>@ViewBag.MapCS2["TestFee"]</td>
            <td>@ViewBag.MapCS3["TestFee"]</td>
            <td>@ViewBag.MapCS4["TestFee"]</td>
            <td>@ViewBag.MapCS5["TestFee"]</td>
        </tr>



    </tbody>
</table>



<script type="text/javascript">
    var PreEstId = parent.$("#PreEstId").val();
    var PreEstType = parent.$("#ProjectType").val();
    var MapCS1 =  @Html.Raw(Json.Encode(ViewBag.MapCS1));
    var MapCS2 =  @Html.Raw(Json.Encode(ViewBag.MapCS2));
    var MapCS3 =  @Html.Raw(Json.Encode(ViewBag.MapCS3));
    var MapCS4 =  @Html.Raw(Json.Encode(ViewBag.MapCS4));
    var MapCS5 =  @Html.Raw(Json.Encode(ViewBag.MapCS5));

    var table;
    layui.use(['form', 'table', 'upload', 'layer', 'element'], function () {
        var element = layui.element;
        var form = layui.form;
        table = layui.table;
        var tab = parent.tab;
        var layer = layui.layer;

        //转换静态表格
        table.init('demo', {

            limit: 100 //注意：请务必确保 limit 参数（默认：10）是与你服务端限定的数据条数一致

            //支持所有基础参数

            , done: function (res, curr, count) {
                //如果是异步请求数据方式，res即为你接口返回的信息。
                //如果是直接赋值的方式，res即为：{data: [], count: 99} data为当前页数据、count为数据总长度
                //console.log(res);
                ////得到当前页码
                //console.log(curr);
                ////得到数据总量
                //console.log(count);
                tableInit();
            }
        });



    });

    //function UpdateTable(FieldName, FieldValue, PreEstId) {

    //    $.ajax({
    //        type: "POST",
    //        url: "/Estimate/PEUserUpdate",
    //        async: false,
    //        data: { "FieldName": FieldName, "FieldValue": FieldValue, "PreEstId": PreEstId, "PreEstType": PreEstType },
    //        success: function (msg) {
    //            if (msg.result == "OK") {
    //                parent.layer.msg('修改成功，请刷新', { icon: 6, time: 1000 });
    //                DataMap = msg;
    //                tableInit();
    //            } else {
    //                alert(msg.result);
    //            }
    //        }
    //    });
    //}


    function tableInit() {

        var temp1 = $(".layui-table-body tbody").find("tr[data-index='0']");
        //整理第0行元素
        $(temp1).find("td[data-field!='A1']").remove();
        $(temp1).find("td[data-field='A1']").attr("colspan", "6");
        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");


        //第9行数据整理  红线内单方造价
        temp1 = $(".layui-table-body tbody").find("tr[data-index='9']");
        $(temp1).find("td[data-field='A2'] div").text((MapCS1.HXNBJJE / MapCS1.JZMJ).toFixed(0));
        $(temp1).find("td[data-field='A3'] div").text((MapCS2.HXNBJJE / MapCS2.JZMJ).toFixed(0));
        $(temp1).find("td[data-field='A4'] div").text((MapCS3.HXNBJJE / MapCS3.JZMJ).toFixed(0));
        $(temp1).find("td[data-field='A5'] div").text((MapCS4.HXNBJJE / MapCS4.JZMJ).toFixed(0));
        $(temp1).find("td[data-field='A6'] div").text((MapCS5.HXNBJJE / MapCS5.JZMJ).toFixed(0));

        //第10行数据整理  红线容量单价
        temp1 = $(".layui-table-body tbody").find("tr[data-index='10']");
        $(temp1).find("td[data-field='A2'] div").text((MapCS1.HXNBJJE / MapCS1.RL).toFixed(0));
        $(temp1).find("td[data-field='A3'] div").text((MapCS2.HXNBJJE / MapCS2.RL).toFixed(0));
        $(temp1).find("td[data-field='A4'] div").text((MapCS3.HXNBJJE / MapCS3.RL).toFixed(0));
        $(temp1).find("td[data-field='A5'] div").text((MapCS4.HXNBJJE / MapCS4.RL).toFixed(0));
        $(temp1).find("td[data-field='A6'] div").text((MapCS5.HXNBJJE / MapCS5.RL).toFixed(0));

        //第11行数据整理  红线容量单价
        temp1 = $(".layui-table-body tbody").find("tr[data-index='11']");
        $(temp1).find("td[data-field='A2'] div").text((MapCS1.HTJE / MapCS1.RL).toFixed(0));
        $(temp1).find("td[data-field='A3'] div").text((MapCS2.HTJE / MapCS2.RL).toFixed(0));
        $(temp1).find("td[data-field='A4'] div").text((MapCS3.HTJE / MapCS3.RL).toFixed(0));
        $(temp1).find("td[data-field='A5'] div").text((MapCS4.HTJE / MapCS4.RL).toFixed(0));
        $(temp1).find("td[data-field='A6'] div").text((MapCS5.HTJE / MapCS5.RL).toFixed(0));

        //        //第2行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='1']");
        //        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.XMMC);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.YDXZ);
        //        $(temp1).find("td[data-field='A6'] div").text(DataMap.SSQY);

        //        //第3行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='2']");
        //        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A6']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.JZMJ);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.RL);
        //        $(temp1).find("td[data-field='A6'] div").text(DataMap.WXCD);

        //        //第4行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='3']");
        //        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.HXNBJJE);
        //        $(temp1).find("td[data-field='A4'] div").text((DataMap.HXNBJJE / DataMap.JZMJ).toFixed(0));
        //        $(temp1).find("td[data-field='A6'] div").text((DataMap.HXNBJJE / DataMap.RL).toFixed(0));

        //        //第6行数据整理  附表头
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='5']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A5'] div").removeClass("laytable-cell-1-0-0");
        ////////////////////////////////////////////////////////////////////////////////////////////
        //        //工程直接成本 --外线
        //        //外线
        //        //第7行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='6']");

        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "16");
        //        $(temp1).find("td[data-field='A2']").attr("rowspan", "3");

        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A5'] div").removeClass("laytable-cell-1-0-4");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.CivilPrice_WX);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_WXTJ);


        //        //第8行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='7']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.EquipFee_WX);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_WXSB);

        //        //第9行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='8']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.MeterialFee_WX);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_WXCL);

        //        //开闭所
        //        //第10行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='9']");
        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "2");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4'] div").removeClass("laytable-cell-1-0-3");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.EquipFee_KBS);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_KBSSB);

        //        //第11行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='10']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.MeterialFee_KBS);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_KBSCL);

        //        //公用
        //        //第12行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='11']");
        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "2");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4'] div").removeClass("laytable-cell-1-0-3");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.EquipFee_GP);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_GYSB);



        //        //第13行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='12']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.MeterialFee_GP);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_GYCL);



        //        //专用
        //        //第14行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='13']");
        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "2");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4'] div").removeClass("laytable-cell-1-0-3");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.EquipFee_ZP);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_ZYSB);




        //        //第15行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='14']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.MeterialFee_ZP);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_ZYCL);


        //        //总体
        //        //第16行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='15']");
        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "3");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4'] div").removeClass("laytable-cell-1-0-3");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text((DataMap.InstallFee_WX + DataMap.InstallFee_KBS + DataMap.InstallFee_GP + DataMap.InstallFee_ZP));
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_ZTAZ);

        //        //第17行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='16']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A1'] div").removeClass("laytable-cell-1-0-0");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.CivilPrice_HXN);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_ZTTJSGF);


        //        //第18行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='17']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.TestFee);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_ZTSYTSF);

        //        //业主要求
        //        //第19行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='18']");
        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "4");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4'] div").removeClass("laytable-cell-1-0-3");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.YZYQ_CF);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_YZYQCF);


        //        //第20行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='19']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.YZYQ_YHYB);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_YZYQYHYB);

        //        //第21行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='20']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.YZYQ_LLLJ);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_YZYQLLLJ);


        //        //第22行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='21']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A2'] div").text(DataMap.YZYQ_CDZ);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.Memo_YZYQCDZ);

        //        //小计
        //        //第23行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='22']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").remove();
        //        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A2']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        //        var XJ = DataMap.YZYQ_CDZ + DataMap.YZYQ_LLLJ + DataMap.YZYQ_YHYB + DataMap.YZYQ_CF + DataMap.TestFee + DataMap.CivilPrice_HXN + DataMap.InstallFee_WX+
        //            DataMap.InstallFee_KBS + DataMap.InstallFee_GP + DataMap.InstallFee_ZP + DataMap.MeterialFee_ZP + DataMap.EquipFee_ZP +
        //            DataMap.MeterialFee_GP + DataMap.EquipFee_GP + DataMap.MeterialFee_KBS + DataMap.EquipFee_KBS + DataMap.MeterialFee_WX +
        //            DataMap.EquipFee_WX + DataMap.CivilPrice_WX;
        //        $(temp1).find("td[data-field='A2'] div").text(XJ);
        //        //$(temp1).find("td[data-field='A3']").attr("data-edit", "text");

        //        //工程管理成本
        //        //多经合同金额
        //        //第24行数据整理
        //        var tempSum = 0;
        //        tempSum += XJ;

        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='23']");
        //        $(temp1).find("td[data-field='A1']").attr("rowspan", "8");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A3']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        //        $(temp1).find("td[data-field='A3'] div").removeClass("laytable-cell-1-0-2");
        //        $(temp1).find("td[data-field='A4'] div").removeClass("laytable-cell-1-0-3");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.DJHTJE);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_DJHTJE);
        //        tempSum += DataMap.DJHTJE;

        //        //第25行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='24']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.SJF);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_SJF);
        //        $(temp1).find("td[data-field='A3'] div").text((DataMap.SJF * DataMap.DJHTJE).toFixed(2));
        //        tempSum += DataMap.SJF * DataMap.DJHTJE;

        //        //第26行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='25']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.JLF);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_JLF);
        //        $(temp1).find("td[data-field='A3'] div").text((DataMap.JLF * DataMap.DJHTJE).toFixed(0));
        //        tempSum += DataMap.JLF * DataMap.DJHTJE;

        //        //第27行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='26']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.DJGLF);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_DJGLF);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.DJGLF * DataMap.DJHTJE);
        //        tempSum += DataMap.DJGLF * DataMap.DJHTJE;

        //        //第28行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='27']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.SJ);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_SJ);
        //        $(temp1).find("td[data-field='A3'] div").text((DataMap.SJ * DataMap.DJHTJE).toFixed(2));
        //        tempSum += DataMap.SJ * DataMap.DJHTJE;

        //        //第29行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='28']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.ZJCB);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_ZJCB);
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.ZJCB);
        //        tempSum += DataMap.ZJCB;

        //        //第30行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='29']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A5']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.GSGLF);
        //        $(temp1).find("td[data-field='A5'] div").text(DataMap.Memo_GSGLF);
        //        $(temp1).find("td[data-field='A3'] div").text((DataMap.GSGLF * DataMap.DJHTJE).toFixed(2));
        //        tempSum += DataMap.GSGLF * DataMap.DJHTJE;

        //        //第31行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='30']");
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A4']").attr("colspan", "2");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.CoordFee);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_YWF);
        //        tempSum += DataMap.CoordFee;

        //        //合计、利润、报价金额
        //        //第32行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='31']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A3']").remove();
        //        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A2']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        //        $(temp1).find("td[data-field='A2'] div").text(tempSum.toFixed(2));

        //        //第33行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='32']");
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A3']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A4']").attr("data-edit", "text");
        //        $(temp1).find("td[data-field='A3'] div").text(DataMap.LRL);
        //        $(temp1).find("td[data-field='A4'] div").text(DataMap.Memo_LRL);
        //        $(temp1).find("td[data-field='A2'] div").text((DataMap.LRL * tempSum).toFixed(0));

        //        //第34行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='33']");
        //        $(temp1).find("td[data-field='A3']").remove();
        //        $(temp1).find("td[data-field='A4']").remove();
        //        $(temp1).find("td[data-field='A5']").remove();
        //        $(temp1).find("td[data-field='A6']").remove();
        //        $(temp1).find("td[data-field='A1']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A2']").attr("colspan", "3");
        //        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        //        $(temp1).find("td[data-field='A2'] div").text((DataMap.LRL * tempSum + tempSum).toFixed(2));
        //        var SUMMoney = DataMap.LRL * tempSum + tempSum;

        //        //第5行数据整理
        //        temp1 = $(".layui-table-body tbody").find("tr[data-index='4']");
        //        $(temp1).find("td[data-field='A2'] div").removeClass("laytable-cell-1-0-1");
        //        $(temp1).find("td[data-field='A2'] div").text(SUMMoney.toFixed(2));
        //        $(temp1).find("td[data-field='A4'] div").text((SUMMoney / DataMap.JZMJ).toFixed(0));
        //        $(temp1).find("td[data-field='A6'] div").text((SUMMoney / DataMap.RL).toFixed(0));

    }




</script>
